home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / viewkit / builderExamples / stopwatch / FaceDerived.c++ < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  977 b   |  47 lines

  1. /////////////////////////////////////////////////////////////
  2. //
  3. // Source file for FaceDerived
  4. //
  5. //    This file generated by BuilderXcessory. 
  6. /////////////////////////////////////////////////////////////
  7.  
  8. #include "FaceDerived.h"
  9. #include <Vk/VkFormat.h> // Typed line
  10.  
  11. FaceDerived::FaceDerived(const char *name, Widget parent) : 
  12.                    Face(name, parent) 
  13.     _count = 0;                                    // Typed line
  14. }
  15.  
  16.  
  17. FaceDerived::~FaceDerived()
  18. {
  19.   // Empty
  20. }
  21.  
  22.  
  23. const char * FaceDerived::className() // classname
  24. {
  25.     return ("FaceDerived");
  26. }
  27.  
  28.  
  29. // Typed lines
  30.  
  31. void FaceDerived::updateTimeCallback(VkCallbackObject *,
  32.                      void *,
  33.                      void *)
  34. {
  35.     _count++;                                     // Typed line
  36.  
  37.     const char *str = VkFormat("%d", _count);           // Typed line
  38.     
  39.     XtVaSetValues(_text,                          // Typed line
  40.           XtVaTypedArg, XmNlabelString,
  41.           XmRString, str, strlen(str)+1,
  42.           NULL);
  43.           
  44. }
  45.  
  46.